<!DOCTYPE html>
<!-- thymeleaf支持 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>区块链学院学生竞赛管理系统</title>
    <link rel="stylesheet" href="/res/css/pintuer.css">
    <link rel="stylesheet" href="/res/css/admin.css">
    <link rel="stylesheet" href="/res/layui/css/layui.css">
    <script src="/res/js/jquery.js"></script>
    <script src="/res/js/pintuer.js"></script>
    <script src="/res/layui/layui.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="/res/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />区块链学院学生竞赛管理系统
        </h1>
    </div>
    <div class="head-l" style="float: right">

        <a href="##" class="button button-little bg-blue">
            <span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;
        <a class="button button-little bg-red" href="#">
            <span class="icon-power-off"></span> 退出登录</a>&nbsp;&nbsp;
    </div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>基本设置</h2>
    <ul style="display:block">
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>管理员信息</a></li>
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>系统消息管理</a></li>
        <li><a href="/getAllCompetitionsByPages" target="_self">
            <span class="icon-caret-right"></span>竞赛信息管理</a>
        </li>
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>竞赛申报审核</a></li>
        <li><a href="/getAllStudentsByPages" target="_self"><span class="icon-caret-right"></span>学生用户管理</a></li>
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>教师用户管理</a></li>
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>竞赛成果统计</a></li>


    </ul>

</div>
<!--<script>-->
<!--    var stuNo = localStorage.getItem("stuNo");-->
<!--</script>-->
<script type="text/javascript">
    $(function() {
        $(".leftnav h2").click(function() {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function() {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="#" target="_self" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">个人信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</php></span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>

<div class="admin">

    <div class="panel admin-panel">
        <div class="panel-head"><strong><span class="icon-user"></span> 个人信息</strong></div>
        <div class="body-content">
            <form method="post" class="form-x" action="/updateTeacherByTeaNo">
                <!--                <input type="hidden" th:value="${stu.id}" name="id"/>-->

                <div class="form-group">
                    <div class="label">
                        <label for="sitename">工号：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" size="50" th:value="${tea.teaNo}" name="teaNo" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label for="sitename">姓名：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" size="50" th:value="${tea.teaName}" name="teaName" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">系部：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" size="50" th:value="${tea.department}" name="department" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label for="sitename">职称：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" size="50" th:value="${tea.professional_title}" name="professional_title" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label for="sitename">联系电话：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" size="50" th:value="${tea.phone}" name="phone" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label for="sitename">邮箱：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" size="50" th:value="${tea.email}" name="email" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 确认修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script th:inline="javascript">

    // var i = [[${i}]];   //该方式也可
    var i = /*[[${i}]]*/ '';
    console.log("i="+i);
    if (i){
        layui.use('layer',function(){
            var layer = layui.layer;
            layer.alert("修改成功!")
        })
    }

</script>

</body>
</html>